package de.fme.tracking;

import java.util.Date;

/**
 * @author PloetzJ
 * Feedback DAO
 */

public class FeedbackEntity {

    // JSON keys
    public static final String KEY_ID = "id";
    public static final String KEY_PUB_CHANNEL_NODE = "pubChannelUuid";
    public static final String KEY_PUB_EVENT_NODE = "pubEventUuid";
    public static final String KEY_USER_ID = "userRef";
    public static final String KEY_TYPE_ID = "typeRef";
    public static final String KEY_VALUE = "value";
    public static final String KEY_COUNT = "count";
    public static final String KEY_POST_DATE = "postDate";
    public static final String KEY_FETCH_DATE = "fetchDate";
    
    private Long id; // internal DB-generated id
    private String pubChannelUuid;
    private String pubEventUuid;
    private Integer typeRef;
    private String value;
    private Integer count;
    private Long userRef;
    private Date postDate;
    private Date fetchDate;
    
	public FeedbackEntity(String pubChannelUuid, String pubEventUuid,
			Integer typeRef, String value, Integer count, Long userRef,
			Date postDate, Date fetchDate) {
		super();
		this.pubChannelUuid = pubChannelUuid;
		this.pubEventUuid = pubEventUuid;
		this.typeRef = typeRef;
		this.value = value;
		this.count = count;
		this.userRef = userRef;
		this.postDate = postDate;
		this.fetchDate = fetchDate;
	}
	
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * @return the pubChannelUuid
	 */
	public String getPubChannelUuid() {
		return pubChannelUuid;
	}
	/**
	 * @param pubChannelUuid the pubChannelUuid to set
	 */
	public void setPubChannelUuid(String pubChannelUuid) {
		this.pubChannelUuid = pubChannelUuid;
	}
	/**
	 * @return the pubEventUuid
	 */
	public String getPubEventUuid() {
		return pubEventUuid;
	}
	/**
	 * @param pubEventUuid the pubEventUuid to set
	 */
	public void setPubEventUuid(String pubEventUuid) {
		this.pubEventUuid = pubEventUuid;
	}
	/**
	 * @return the typeRef
	 */
	public Integer getTypeRef() {
		return typeRef;
	}
	/**
	 * @param typeRef the typeRef to set
	 */
	public void setTypeRef(Integer typeRef) {
		this.typeRef = typeRef;
	}
	/**
	 * @return the value
	 */
	public String getValue() {
		return value;
	}
	/**
	 * @param value the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}
	/**
	 * @return the count
	 */
	public int getCount() {
		return count;
	}
	/**
	 * @param count the count to set
	 */
	public void setCount(int count) {
		this.count = count;
	}
	/**
	 * @return the userRef
	 */
	public Long getUserRef() {
		return userRef;
	}
	/**
	 * @param userRef the userRef to set
	 */
	public void setUserRef(Long userRef) {
		this.userRef = userRef;
	}
	/**
	 * @return the postDate
	 */
	public Date getPostDate() {
		return postDate;
	}
	/**
	 * @param postDate the postDate to set
	 */
	public void setPostDate(Date postDate) {
		this.postDate = postDate;
	}
	/**
	 * @return the fetchDate
	 */
	public Date getFetchDate() {
		return fetchDate;
	}
	/**
	 * @param fetchDate the fetchDate to set
	 */
	public void setFetchDate(Date fetchDate) {
		this.fetchDate = fetchDate;
	}
    
}